﻿using EkStudio.com.bean.xml.reflection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface.Field
{
    public class BillUiFieldsEditBorderProperty:BillObjectInterface
    {
        private string alignment = "StLeft";
        private int columns = 1;
        private int rows = 1;
        private bool newLine = false;
        private bool shInGrid = true;
        private int maxSize = 1;
        private bool expend = false;

        [Xml("alignment")]
        public string Alignment
        {
            get
            {
                return alignment;
            }

            set
            {
                alignment = value;
            }
        }
        [Xml("columns")]
        public int Columns
        {
            get
            {
                return columns;
            }

            set
            {
                columns = value;
            }
        }
        [Xml("rows")]
        public int Rows
        {
            get
            {
                return rows;
            }

            set
            {
                rows = value;
            }
        }
        [Xml("newLine")]
        public bool NewLine
        {
            get
            {
                return newLine;
            }

            set
            {
                newLine = value;
            }
        }
        [Xml("shInGrid")]
        public bool ShInGrid
        {
            get
            {
                return shInGrid;
            }

            set
            {
                shInGrid = value;
            }
        }
        [Xml("maxSize")]
        public int MaxSize
        {
            get
            {
                return maxSize;
            }

            set
            {
                maxSize = value;
            }
        }
        [Xml("expend")]
        public bool Expend
        {
            get
            {
                return expend;
            }

            set
            {
                expend = value;
            }
        }
        [XmlTransient]
        public object ParentBean
        {
            get
            {
                return null;
            }

            set
            {

            }
        }

        public object Clone()
        {
            BillUiFieldsEditBorderProperty clone = new BillUiFieldsEditBorderProperty();
            clone.Alignment = this.alignment;
            clone.Columns = this.columns;
            clone.Rows = this.rows;
            clone.NewLine = this.newLine;
            clone.ShInGrid = this.shInGrid;
            clone.MaxSize = this.maxSize;
            clone.Expend = this.expend;
            return clone;
        }
    }
}
